package com.boyue.dao.impl;

import com.boyue.dao.CommonDao;
import com.boyue.dao.SysMenuDao;
import com.boyue.entity.SysMenu;

import java.sql.SQLException;
import java.util.List;

/**
 * @auth wzy
 * @date 2023/9/8 14:48
 */
public class SysMenuDaoImpl extends CommonDao implements SysMenuDao {
    @Override
    public List<SysMenu> list() throws SQLException {
        String sql = "SELECT * from sys_menu where (menuType='M' or menuType='C') and visible=0";

        return super.executeQuery(SysMenu.class, sql, null);
    }
}
